heartbeat: Bad nodename in /etc/ha.d//haresources [node1]

Posted by Richard on Server Fault See other posts from Server Fault or by Richard
Published on 2011-11-22T19:34:23Z Indexed on 2011/11/23 9:54 UTC
Read the original article Hit count: 1567

I'm trying to start heartbeat on Ubuntu 10.04 with service heartbeat start, but getting the following errors:

heartbeat[24829]: 2011/11/22_19:31:07 ERROR: Bad nodename in /etc/ha.d//haresources [node1]
heartbeat[24829]: 2011/11/22_19:31:07 ERROR: Configuration error, heartbeat not started.

On on server uname -n produces loadb1, on the second server uname -n produces loadb2. The two servers can ping each other okay with those names.

This is /etc/ha.d/ha.cnf on both servers:

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 10
udpport 694
bcast eth1
ucast eth0 my.external.ip
ucast eth0 my.external.ip
ucast eth1 10.0.0.5
ucast eth1 10.0.0.6
#udp     eth0
node    loadb1
node    loadb2
auto_failback off

And this is /etc/ha.d/haresources on both servers:

node1 IPaddr::46.20.121.113 httpd smb dhcpd

Authkeys is also set up.

What am I doing wrong?

The part where I'm least clear is the ucast/bcast lines.

© Server Fault or respective owner

Related posts about failover

Related posts about high-availability